<?php

/****************************** 需要验证登录token的路由 ******************************/
Route::group(['middleware' => ['web_auth:web_api']], function () {
//    Route::get('web-me', 'WebController@me');

    //APP权限
    Route::get('web-access_permissions', ['as' => 'web_access_permissions', 'uses' => 'PublicController@access_permissions']);//APP权限

    /*检测站+维修店*/
    /////商家服务协议
    Route::get('web-business_agreement_detail', ['as' => 'web_business_agreement_detail', 'uses' => 'PublicController@business_agreement_detail']);//商家服务协议详情
    Route::get('web-index', ['as' => 'web_index', 'uses' => 'IndexController@index']);//首页数据
    Route::get('web-profit_index', ['as' => 'web_profit_index', 'uses' => 'IndexController@profit_index']);//收益明细


    /*检测站*/
    ///// 年检预约
    Route::get('web-order_checkpoint_list_for_waiting', ['as' => 'web_order_checkpoint_list_for_waiting', 'uses' => 'OrderCheckpointController@waiting_list']);//检测站-接单（年检预约订单-待处理）
    Route::get('web-order_checkpoint_list', ['as' => 'web_order_checkpoint_list', 'uses' => 'OrderCheckpointController@complete_list']);//检测站-订单列表（年检预约订单-已完成）
    Route::get('web-order_checkpoint_detail', ['as' => 'web_order_checkpoint_detail', 'uses' => 'OrderCheckpointController@order_detail']);//检测站-年检预约订单-详情

    ///// 操作
    Route::put('web-order_checkpoint_single_check_success_ok', ['as' => 'web_order_checkpoint_single_check_success_ok', 'uses' => 'OrderCheckpointController@single_check_success_ok']);//年检预约单-检测成功-合格
    Route::put('web-order_checkpoint_single_check_success_not_ok', ['as' => 'web_order_checkpoint_single_check_success_not_ok', 'uses' => 'OrderCheckpointController@single_check_success_not_ok']);//年检预约单-检测成功-不合格
    Route::put('web-order_checkpoint_single_check_fail', ['as' => 'web_order_checkpoint_single_check_fail', 'uses' => 'OrderCheckpointController@single_check_fail']);//年检预约单-故障-不符合检测条件

    ///// 售后
    Route::get('web-njyy_after_sale_order_list', ['as' => 'web_njyy_after_sale_order_list', 'uses' => 'OrderCheckpointController@after_sale_order_list']);//售后列表
    Route::get('web-njyy_after_sale_order_detail', ['as' => 'web_njyy_after_sale_order_detail', 'uses' => 'OrderCheckpointController@after_sale_order_detail']);//售后详情
    Route::post('web-njyy_agree_refund_apply', ['as' => 'web_njyy_agree_refund_apply', 'uses' => 'OrderCheckpointController@agree_refund_apply']);//同意退款申请
    Route::post('web-njyy_confuse_refund_apply', ['as' => 'web_njyy_confuse_refund_apply', 'uses' => 'OrderCheckpointController@confuse_refund_apply']);//拒绝退款申请
    Route::post('web-njyy_agree_refund_money', ['as' => 'web_njyy_agree_refund_money', 'uses' => 'OrderCheckpointController@agree_refund_money']);//同意退款


    /*维修店*/


});


/****************************** 无限制路由 ******************************/
Route::get('web-business_agreement_list', ['as' => 'web_business_agreement_list', 'uses' => 'PublicController@business_agreement_list']);//商家服务协议列表

Route::post('web-login_in', ['as' => 'web_login_in', 'uses' => 'WebController@login_in']);//账号密码登录
Route::post('web-send_phone_code', ['as' => 'web_send_phone_code', 'uses' => 'WebController@send_phone_code']);//发送手机验证码
Route::post('web-phonecode_login_in', ['as' => 'web_phonecode_login_in', 'uses' => 'WebController@phonecode_login_in']);//手机验证码登录
Route::post('web-get_back_password', ['as' => 'web_get_back_password', 'uses' => 'WebController@get_back_password']);//忘记密码
Route::post('web-single_img_upload', ['as' => 'web_single_img_upload', 'uses' => 'WebController@single_img_upload']);//单图片上传
Route::post('web-multiple_imgs_upload', ['as' => 'web_multiple_imgs_upload', 'uses' => 'WebController@multiple_imgs_upload']);//多个图片上传


/*加盟*/
Route::get('web-shop_join_subheading', ['as' => 'web_shop_join_subheading', 'uses' => 'ShopJoinController@shop_join_subheading']);//门店类型副标题
Route::post('web-shop_join_apply', ['as' => 'web_shop_join_apply', 'uses' => 'ShopJoinController@shop_join_apply']);//门店加盟申请
Route::get('web-checkpoint_type_list', ['as' => 'web_checkpoint_type_list', 'uses' => 'ShopJoinController@checkpoint_type_list']);//检测站类型列表
Route::get('web-shop_apply_search', ['as' => 'web_shop_apply_search', 'uses' => 'ShopJoinController@shop_apply_search']);//门店加盟申请查询

/*商户用户信息*/
Route::get('get-user-list', ['as' => 'user_list', 'uses' => 'ShopController@user_list']);//获取在商户下购买过商品的用户
Route::get('get-user-detail', ['as' => 'user_detail', 'uses' => 'ShopController@user_detail']);//获取指定用户的详细信息



/*【测试使用】*/
Route::post('web-test_fwb', ['as' => 'web_test_fwb', 'uses' => 'WebController@test_fwb']);//富文本上传
Route::get('web-get_test_fwb', ['as' => 'web_get_test_fwb', 'uses' => 'WebController@get_test_fwb']);//获取富文本

/*安卓版本管理*/
Route::get('web_android_app_shop', ['as' => 'web_android_app_shop', 'uses' => 'AppController@android_app_shop']);//商户端

/*协议管理*/
Route::get('web_shop_join_in_explain', ['as' => 'web_shop_join_in_explain', 'uses' => 'IndexController@join_in_explain']);//商户-入驻说明
Route::get('web_shop_sign_agreement', ['as' => 'web_shop_sign_agreement', 'uses' => 'IndexController@sign_agreement']);//商户-签订协议

